using Blog.Core.Entities;
using FluentNHibernate.Mapping;

namespace Blog.Infrastructure.Mappings
{
    public class UserMap:ClassMap<User>
    {
        public UserMap()
        {
            Id(x => x.Id).GeneratedBy.Identity();
            Map(x => x.LoginName);
            Map(x => x.Password);
            Map(x => x.Name);
            Map(x => x.LastName);
            Map(x => x.Email);
        }
    }
}